Intermediate iOS 10 Programming with Swift by Simon Ng

Intermediate iOS 10 Programming with Swift by Simon Ng

Author:Simon Ng
Language: eng
Format: epub, pdf
Publisher: GitBook


Quick note: If you run the app on iPhone 6/6 Plus simulator, the result will be slightly difference. I will explain it in the later chapter.

Customizing the Collection Cell Background

Cool, right? With a few lines of code, you can create a grid-based photo app. What if you want to add a picture frame to the photos? Like other UI elements, UICollectionViewCell lets developers easily customize its background.

A collection view cell is comprised of three different views including background, selected background and content view: 

Background View – background view of the cell

Selected Background View – the background view when the cell is selected. When the user selects the cell, this selected background view will be layered above the background view.

Content View – obviously, it's the cell content.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.